﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {//4、用户输入邮箱，请验证其合法性。
            Regex regex = new Regex(@"^\w+(\.\w+)+@\w+(\.\w+)+$");
            string i = Console.ReadLine();
            Console.WriteLine(regex.IsMatch(i));
        }
    }
}
